package com.douban.business;

import java.util.HashMap;
import java.util.Map;

import org.apache.xerces.xni.Augmentations;
import org.apache.xerces.xni.QName;
import org.apache.xerces.xni.XMLAttributes;

import com.core.sax.*;
import com.douban.business.vo.RecordingStatusVO;
import com.douban.constants.DoubanConstant;

public class DoubanRecsHandler extends SaxHandler {

	private Map map = new HashMap();
	private RecordingStatusVO rstatus = new RecordingStatusVO();
	
	
	public void startElement(QName element, XMLAttributes attrs,
			Augmentations augs){
//		if(!rstatus.isStartListRecording()){
//			String theClass =attrs.getValue(DoubanConstant.CLASS.getValue());
//			if(theClass!=null&&theClass.equalsIgnoreCase(DoubanConstant.INFO_CLASS.getValue())){
//				rstatus.setStartListRecording(true);
//			}			
//		}else{
//		//recording is on going	
//			RecsRecorder rr = new RecsRecorder(itemvo, rstatus, element, attrs, augs, Recorder.START_ELEMENT);
//			if(rr.getItemVO()!=null&&rr.getItemVO().getId()!=null){
//				rstatus.setRecordingId(rr.getItemVO().getId());
//				putItemVO(rstatus.getRecordingId(), rr.getItemVO());
//			}
//		}
		
		
	}
}
